package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;


import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author mytjxt
 * @since 2024-05-21
 */
public interface ILearningLessonService extends IService<LearningLesson> {
// 添加课程到课表
    void addUserLessons(Long userId, List<Long> courseIds);
//分页查询我的课表
    PageDTO<LearningLessonVO> queryMyLessons(PageQuery pageQuery);
//查询正在学习的课程
    LearningLessonVO queryMyCurrentLesson();
//校验当前用户是否可以学习当前课程
    Long isLessonValid(Long courseId);
//查询用户课表中指定课程状态
    LearningLessonVO queryLearningStatus(Long courseId);

    void createLearningPlan(Long courseId, Integer freq);

    LearningPlanPageVO queryMyPlans(PageQuery query);
}
